#!/bin/sh
# postflight

if [ -e "/Library/Application Support/Native Instruments/Hardware/NIHardwareAgent.app" ]; then
	"$1/Contents/Resources/LoginItemHelper" -add "/Library/Application Support/Native Instruments/Hardware/NIHardwareAgent.app" -hide
	open -a "/Library/Application Support/Native Instruments/Hardware/NIHardwareAgent.app" 
fi
